package com.mdb.open.trade.constant.trade;

/**
 * @description:
 * @author: you.yichao
 * @create: 2019-06-20 20:44
 **/
public interface Constants {

    public static final String SYSTEM_CODE = "TRADE_FINANCE";

    public static final String LOAN_CONTRACT_TEMPLATE_DOCX = "loan_contract_template_docx";

    public static final String MANUAL_LOAN_OUT_SUCCESS = "人工查询核心放款成功";

    public static final String MANUAL_OUT_REMIT_SUCCESS = "人工查询核心汇出成功";

    public static final String MANUAL_OUT_REPAYMENT_SUCCESS = "人工查询核心还款成功";


    public static final String FALSE = "false";
    public static final String TRUE = "true";

    public static final String PDF_SUFFIX = ".pdf";

    /*------------------- 缓存相关 -----------------*/

    public static final String SYSTEM_KEY = "tf:";

    /**
     * 工单缓存
     */
    public static final String WORK_ORDER_PREFIX = "work_order:";

    public static final String WORK_ORDER_OUTWARD = SYSTEM_KEY + WORK_ORDER_PREFIX + "outward:";

    public static final String WORK_ORDER_LOAN = SYSTEM_KEY + WORK_ORDER_PREFIX + "loan:";

    public static final String WORK_ORDER_TRANSFER = SYSTEM_KEY + WORK_ORDER_PREFIX + "transfer:";

    public static final String WORK_ORDER_REPAYMENT = SYSTEM_KEY + WORK_ORDER_PREFIX + "repayment:";

    /**
     * 借据缓存
     */
    public static final String LOAN_CONTRACT = "loan_contract";

    public static final String LOAN_CONTRACT_EXPIRED_TIME = SYSTEM_KEY + LOAN_CONTRACT + "expire:";

    public static final Long EXPIRED_TIME = 30L;

    /**
     * 融资申请单缓存
     */
    public static final String LOAN_APPLY_DETAIL = SYSTEM_KEY + "loan_apply:base_";
    /**
     * 融资申请资料缓存
     */
    public static final String LOAN_APPLY_INFO = SYSTEM_KEY + "loan_apply:info:";
    public static final String LOAN_APPLY_INFO_BASIC = "'basic_'";
    public static final String LOAN_APPLY_INFO_CUSTOMS = "'customs_'";
    public static final String LOAN_APPLY_INFO_EXTEND = "'extend_'";
    public static final String LOAN_APPLY_INFO_TRANSPORT = "'transport_'";
    public static final String LOAN_APPLY_INFO_ITEMS = "'items_'";


    String CORE_PAY_SYSTEM_ID = "DF";

    String CORE_PAY_QUERY_FLAG = "P";
}
